<?
include('../tools/form.php');
include('../head.php');
$kode=$_GET['kode'];
$result= select_table('ref_mapel_guru', '2','kd_ref_mapel_guru',"$kode");//untuk Kode di sesuaikan dengan table cth kd_siswa
while($row = mysql_fetch_array($result)){
$kd_ref_mapel_guru=$row['kd_ref_mapel_guru'];
$kd_mapel=$row['kd_mapel'];
$kd_guru=$row['kd_guru'];
$status_delete=$row['status_delete'];
}
form_buka('ref_mapel_guru_edit_submit.php');
//============================= Judul Form ========================
judul('Form Input Ref Mapel Guru');
//============================= Isi Form ==========================
?> <table style='width:100%;' > <tr> <td> 
            <?  select_options_list('Pilih Mapel','kd_mapel','mst_mapel','kd_mapel','nm_mapel',$kd_mapel);?>
</td> <td> <?input_hidden(' Kd Ref Mapel Guru','kd_ref_mapel_guru',"value='$kd_ref_mapel_guru'");?>
</td> </tr>
<tr> <td> <?select_options_list(' Nama Guru','kd_guru','mst_guru','kd_guru','nm_guru',$kd_guru);?>
</td> <td> 
</td> </tr>
<tr><td colspan='2' align='center' > <br> <? button('submit','Simpan'); button('reset','Kosong');?> </td></tr></table><? //============================= Button ============================
form_tutup(); ?> 